package com.hs.user.bean;

import java.io.Serializable;
import java.util.Date;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.*;

import javax.validation.constraints.NotBlank;

/**
 * <p>
 * 用户
 * </p>
 *
 * @author Lin GongZi
 * @since 2022-07-20
 */
@Data
@AllArgsConstructor
@NoArgsConstructor
  @ApiModel(value = "User对象", description = "用户")
@TableName("user")
public class User implements Serializable {

    private static final long serialVersionUID = 1L;

      @ApiModelProperty("电话")
      @TableId(value = "telephone",type = IdType.AUTO)
      private String telephone;

      @ApiModelProperty("昵称")
      @NotBlank(message = "昵称不能为空")
      private String nickName;

      @ApiModelProperty("微信")
      @NotBlank(message = "微信号不能为空")
      private String wechat;

      @ApiModelProperty("状态")
      private String status;

      @ApiModelProperty("创建时间")
      private Date createTime;


}
